//
//  SuanMaCenterTableViewCell.m
//  DBAChain
//
//  Created by Evan on 2018/9/8.
//  Copyright © 2018 Evan. All rights reserved.
//

#import "SuanMaCenterTableViewCell.h"

@implementation SuanMaCenterTableViewCell

+ (instancetype)cellWithTableView:(UITableView *)tableView IndexPath:(NSIndexPath *)indexPath
{
    NSString *Service = [NSString stringWithFormat:@"SuanMaCenterTableViewCell_%ld_%ld",indexPath.section,indexPath.row];
    SuanMaCenterTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        [tableView registerNib:[UINib nibWithNibName:@"SuanMaCenterTableViewCell" bundle:nil] forCellReuseIdentifier:Service];
        cell = [tableView dequeueReusableCellWithIdentifier:Service];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.viewBg.layer.cornerRadius = 10;
    
    self.viewBg.layer.shadowColor = [UIColor blackColor].CGColor;
    //        阴影的透明度
    self.viewBg.layer.shadowOpacity = 0.3f;
    //        阴影的圆角
    self.viewBg.layer.shadowRadius = 4.0f;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
